#
# Makefile pour generer le moteur de workflows
#


#
# Constantes
#
CC=gcc
SRC=gestion_client.o main.o optionServer.o gestion_admin.o processParser.o  workflow_struct.o
OBJS=gestion_client.o main.o optionServer.o gestion_admin.o processParser.o workflow_struct.o
LIBS= -L ../Socket -lsck -L ../Threads -lthrd -lpthread -L /usr/include/libxml2 -lxml2  -L ../IPC -lipc -lm
CFLAGS += -I ../Socket -I ../Threads -I ../IPC -I /usr/include/libxml2
INC_DIR=
LIB_DIR=

#
# Cible principale
#

all: server
	@echo $(CFLAGS)

#
# Cible debug
#


#
# Cible de nettoyage
#

clean:
	@echo
	@echo Debut du nettoyage Workflow_engine
	rm -f *.o server
	@echo Debut du nettoyage Workflow_engine
	@echo

#
# Executable target
#
processParser: processParser.c
	$(CC) -o processParser processParser.c $(CFLAGS) $(LIBS) -DVERBOSE
server: $(OBJS)
	$(CC) -o server $(OBJS) $(CFLAGS) $(LIBS) 

gestion_client.o: gestion_client.h workflow_struct.h gestion_client.c 
main.o: main.c optionServer.h gestion_client.o
optionServer.o: optionServer.c optionServer.h
gestion_admin.o: gestion_admin.c gestion_admin.h
processParser.o: processParser.c processParser.h
workflow_struct.o: workflow_struct.c workflow_struct.h
